package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 短信表
 * </p>
 *
 * @author szt
 * @since 2020-08-14
 */
public class SysShortMessage extends Model<SysShortMessage> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 内容
     */
    private String msg;

    /**
     * 时间
     */
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysShortMessage{" +
        "id=" + id +
        ", phone=" + phone +
        ", msg=" + msg +
        ", createTime=" + createTime +
        "}";
    }

	public SysShortMessage() {
		super();
	}

	public SysShortMessage(String phone, String msg, Date createTime) {
		super();
		this.phone = phone;
		this.msg = msg;
		this.createTime = createTime;
	}
    
    
}
